ul {
    height: 300px;
    overflow: auto;
    padding: 10px 12px;
    border-bottom: 1px solid red;
}
li {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}